package com.setDemo.treeset;

import java.util.TreeSet;

/**
 * @Author milian
 * @Date 2021/7/26 0026 16:50
 */
public class demo1 {
    public static void main(String[] args) {
//        TreeSet
        TreeSet<Object> treeSet = new TreeSet<>();
        treeSet.add("aaa");
        treeSet.add("bbb");
        treeSet.add("ccc");
        treeSet.add("ddd");
        for (Object s: treeSet
             ) {
            System.out.println(s);
        }
    }
}
